import request from '@/utils/request'

export default{
//条件查询&分页
TeacherPageWithCondition(current,size,teacherQuery){
    return request({
        url: `/eduservice/teacher/selectTeacher/${current}/${size}`,
        method: 'post',
        data: teacherQuery
    })
},

//删除讲师
deleteTeacher(id){
    return request({
        url: `/eduservice/teacher/deleteById/${id}`,
        method: 'get'
    })
}
,
//添加讲师
saveTeaher(data){
    return request({
        url: '/eduservice/teacher/addTeacher',
        method: 'post',
        data:data
    })
},
//修改讲师
updateTeaher(data){
    return request({
        url: '/eduservice/teacher/updateTeacher',
        method: 'put',
        data:data
    })
},
//获取讲师信息
getTeacherInfo(id){
    return request({
        url: `/eduservice/teacher/selectById/${id}`,
        method: 'get',
    })
},
//获取讲师列表
getList(){
    return request({
        url: `/eduservice/teacher/list`,
        method: 'get',
    })
},

}

